package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_CEM_OPTION"
 *     
*/
public class CcpCemOption implements Serializable {

    /** identifier field */
    private String ccoGuid;

    /** nullable persistent field */
    private String title;

    /** nullable persistent field */
    private String subTitle;

    /** nullable persistent field */
    private String ytitle;

    /** nullable persistent field */
    private String isStartzero;

    /** nullable persistent field */
    private String isYshowx;

    /** nullable persistent field */
    private String isShowpercent;

    /** nullable persistent field */
    private String isShortvalue;

    /** nullable persistent field */
    private String isShowvaluelable;

    /** nullable persistent field */
    private String bgcolor;

    /** nullable persistent field */
    private String legendType;

    /** nullable persistent field */
    private Integer chartHeight;

    /** nullable persistent field */
    private Integer chartWidth;

    /** nullable persistent field */
    private BigDecimal alpha;

    /** nullable persistent field */
    private String defaultSubtype;

    /** nullable persistent field */
    private String defaultLayout;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** nullable persistent field */
    private String reserved4;

    /** nullable persistent field */
    private String reserved5;

    /** full constructor */
    public CcpCemOption(String ccoGuid, String title, String subTitle, String ytitle, String isStartzero, String isYshowx, String isShowpercent, String isShortvalue, String isShowvaluelable, String bgcolor, String legendType, Integer chartHeight, Integer chartWidth, BigDecimal alpha, String defaultSubtype, String defaultLayout, String reserved1, String reserved2, String reserved3, String reserved4, String reserved5) {
        this.ccoGuid = ccoGuid;
        this.title = title;
        this.subTitle = subTitle;
        this.ytitle = ytitle;
        this.isStartzero = isStartzero;
        this.isYshowx = isYshowx;
        this.isShowpercent = isShowpercent;
        this.isShortvalue = isShortvalue;
        this.isShowvaluelable = isShowvaluelable;
        this.bgcolor = bgcolor;
        this.legendType = legendType;
        this.chartHeight = chartHeight;
        this.chartWidth = chartWidth;
        this.alpha = alpha;
        this.defaultSubtype = defaultSubtype;
        this.defaultLayout = defaultLayout;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
        this.reserved4 = reserved4;
        this.reserved5 = reserved5;
    }

    /** default constructor */
    public CcpCemOption() {
    }

    /** minimal constructor */
    public CcpCemOption(String ccoGuid) {
        this.ccoGuid = ccoGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CCO_GUID"
     *         
     */
    public String getCcoGuid() {
        return this.ccoGuid;
    }

    public void setCcoGuid(String ccoGuid) {
        this.ccoGuid = ccoGuid;
    }

    /** 
     *            @hibernate.property
     *             column="TITLE"
     *             length="100"
     *         
     */
    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    /** 
     *            @hibernate.property
     *             column="SUB_TITLE"
     *             length="100"
     *         
     */
    public String getSubTitle() {
        return this.subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    /** 
     *            @hibernate.property
     *             column="YTITLE"
     *             length="100"
     *         
     */
    public String getYtitle() {
        return this.ytitle;
    }

    public void setYtitle(String ytitle) {
        this.ytitle = ytitle;
    }

    /** 
     *            @hibernate.property
     *             column="IS_STARTZERO"
     *             length="1"
     *         
     */
    public String getIsStartzero() {
        return this.isStartzero;
    }

    public void setIsStartzero(String isStartzero) {
        this.isStartzero = isStartzero;
    }

    /** 
     *            @hibernate.property
     *             column="IS_YSHOWX"
     *             length="1"
     *         
     */
    public String getIsYshowx() {
        return this.isYshowx;
    }

    public void setIsYshowx(String isYshowx) {
        this.isYshowx = isYshowx;
    }

    /** 
     *            @hibernate.property
     *             column="IS_SHOWPERCENT"
     *             length="1"
     *         
     */
    public String getIsShowpercent() {
        return this.isShowpercent;
    }

    public void setIsShowpercent(String isShowpercent) {
        this.isShowpercent = isShowpercent;
    }

    /** 
     *            @hibernate.property
     *             column="IS_SHORTVALUE"
     *             length="1"
     *         
     */
    public String getIsShortvalue() {
        return this.isShortvalue;
    }

    public void setIsShortvalue(String isShortvalue) {
        this.isShortvalue = isShortvalue;
    }

    /** 
     *            @hibernate.property
     *             column="IS_SHOWVALUELABLE"
     *             length="1"
     *         
     */
    public String getIsShowvaluelable() {
        return this.isShowvaluelable;
    }

    public void setIsShowvaluelable(String isShowvaluelable) {
        this.isShowvaluelable = isShowvaluelable;
    }

    /** 
     *            @hibernate.property
     *             column="BGCOLOR"
     *             length="10"
     *         
     */
    public String getBgcolor() {
        return this.bgcolor;
    }

    public void setBgcolor(String bgcolor) {
        this.bgcolor = bgcolor;
    }

    /** 
     *            @hibernate.property
     *             column="LEGEND_TYPE"
     *             length="1"
     *         
     */
    public String getLegendType() {
        return this.legendType;
    }

    public void setLegendType(String legendType) {
        this.legendType = legendType;
    }

    /** 
     *            @hibernate.property
     *             column="CHART_HEIGHT"
     *             length="4"
     *         
     */
    public Integer getChartHeight() {
        return this.chartHeight;
    }

    public void setChartHeight(Integer chartHeight) {
        this.chartHeight = chartHeight;
    }

    /** 
     *            @hibernate.property
     *             column="CHART_WIDTH"
     *             length="4"
     *         
     */
    public Integer getChartWidth() {
        return this.chartWidth;
    }

    public void setChartWidth(Integer chartWidth) {
        this.chartWidth = chartWidth;
    }

    /** 
     *            @hibernate.property
     *             column="ALPHA"
     *             length="4"
     *         
     */
    public BigDecimal getAlpha() {
        return this.alpha;
    }

    public void setAlpha(BigDecimal alpha) {
        this.alpha = alpha;
    }

    /** 
     *            @hibernate.property
     *             column="DEFAULT_SUBTYPE"
     *             length="2"
     *         
     */
    public String getDefaultSubtype() {
        return this.defaultSubtype;
    }

    public void setDefaultSubtype(String defaultSubtype) {
        this.defaultSubtype = defaultSubtype;
    }

    /** 
     *            @hibernate.property
     *             column="DEFAULT_LAYOUT"
     *             length="1"
     *         
     */
    public String getDefaultLayout() {
        return this.defaultLayout;
    }

    public void setDefaultLayout(String defaultLayout) {
        this.defaultLayout = defaultLayout;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="50"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="50"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED4"
     *             length="100"
     *         
     */
    public String getReserved4() {
        return this.reserved4;
    }

    public void setReserved4(String reserved4) {
        this.reserved4 = reserved4;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED5"
     *             length="100"
     *         
     */
    public String getReserved5() {
        return this.reserved5;
    }

    public void setReserved5(String reserved5) {
        this.reserved5 = reserved5;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("ccoGuid", getCcoGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpCemOption) ) return false;
        CcpCemOption castOther = (CcpCemOption) other;
        return new EqualsBuilder()
            .append(this.getCcoGuid(), castOther.getCcoGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCcoGuid())
            .toHashCode();
    }

}
